A bit-vector algorithm for computing Levenshtein and Damerau edit distances